package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import static org.jsola.core.example.BaseExample.*;
import static org.jsola.hr.example.TransferAccountsDetailExample.*;

/**
 * 转账明细
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【转账明细】的参数")
@Data
public class TransferAccountsDetailUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    private List<String> ids;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_SUBJECT_ID, example = E_SUBJECT_ID)
    @Length(max = 32, message = M_SUBJECT_ID_MAX)
    private String subjectId;

    @ApiModelProperty(notes = N_PEOPLE_ID, example = E_PEOPLE_ID)
    @Length(max = 32, message = M_PEOPLE_ID_MAX)
    private String peopleId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 256, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD)
    @Length(max = 20, message = M_ID_CARD_MAX)
    private String idCard;

    @ApiModelProperty(notes = N_BANK_ID, example = E_BANK_ID)
    @Length(max = 50, message = M_BANK_ID_MAX)
    private String bankId;

    @ApiModelProperty(notes = N_BANK_NAME, example = E_BANK_NAME)
    @Length(max = 64, message = M_BANK_NAME_MAX)
    private String bankName;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE)
    private Integer type;

    @ApiModelProperty(notes = N_IDENTITY, example = E_IDENTITY)
    @Length(max = 100, message = M_IDENTITY_MAX)
    private String identity;

    @ApiModelProperty(notes = N_IDENTITY_BINDING, example = E_IDENTITY_BINDING)
    private Boolean identityBinding;

    @ApiModelProperty(notes = N_IS_PING_AN_BANK, example = E_IS_PING_AN_BANK)
    private Boolean isPingAnBank;

    @ApiModelProperty(notes = N_IS_OTH_AREA, example = E_IS_OTH_AREA)
    private Boolean isOthArea;

    @ApiModelProperty(notes = N_MONEY, example = E_MONEY)
    private BigDecimal money;

    @ApiModelProperty(notes = N_ORDER_TITLE, example = E_ORDER_TITLE)
    @Length(max = 64, message = M_ORDER_TITLE_MAX)
    private String orderTitle;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 256, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_BATCH_ID, example = E_BATCH_ID)
    @Length(max = 32, message = M_BATCH_ID_MAX)
    private String batchId;

    @ApiModelProperty(notes = N_THIRDPARTY_DETAIL_ID, example = E_THIRDPARTY_DETAIL_ID)
    @Length(max = 100, message = M_THIRDPARTY_DETAIL_ID_MAX)
    private String thirdpartyDetailId;

    @ApiModelProperty(notes = N_THIRD_PARTY_INTERIOR_DETAIL_ID, example = E_THIRD_PARTY_INTERIOR_DETAIL_ID)
    @Length(max = 200, message = M_THIRD_PARTY_INTERIOR_DETAIL_ID_MAX)
    private String thirdPartyInteriorDetailId;

    @ApiModelProperty(notes = N_SUBJECT_STATUS, example = E_SUBJECT_STATUS)
    private Integer subjectStatus;

    @ApiModelProperty(notes = N_PAY_STATUS, example = E_PAY_STATUS)
    private Integer payStatus;

    @ApiModelProperty(notes = N_PAY_TIME, example = E_PAY_TIME)
    private Date payTime;

    @ApiModelProperty(notes = N_FEE, example = E_FEE)
    private BigDecimal fee;

    @ApiModelProperty(notes = N_FAIL_CAUSE, example = E_FAIL_CAUSE)
    @Length(max = 200, message = M_FAIL_CAUSE_MAX)
    private String failCause;

    @ApiModelProperty(notes = N_IS_DISPOSE, example = E_IS_DISPOSE)
    private Boolean isDispose;


}

